@use './setting.scss' as vars;
@use './theme/config.scss' as config;
// 顶部样式
.top-nav-container {
  @include config.useTheme {
    background-image: getVar("headerBgImage") !important;
  }
  height: vars.$xyTopBarHeight;

  // 顶部logo
  .logo {
    height: vars.$xyTopBarHeight;
    line-height: vars.$xyTopBarHeight;
  }
}

// 带边框边角的容器
.custom-card-corner-container {
  border-color: vars.$theme-card-container-corner-color !important;
  cursor: pointer;

  &:after,
  &:before {
    border-color: vars.$theme-card-container-border-color !important;
  }
}

// 带边框边角的容器
.custom-card-corner-container {
  height: auto;
  position: relative;
  box-sizing: border-box;

  .card-corner-inside {
    position: relative;
    height: 100%;
    z-index: 10;
    background-color: transparent;
  }
}

// 顶部样式
.top-nav-container {
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1001;
  overflow: hidden;
  display: flex;
  align-items: center;
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;

  .logo {
    font-size: 1.563vw;
    box-sizing: border-box;
    text-indent: 1.042vw;
    font-weight: bold;
    @include config.useTheme {
      color: getVar("color") !important;
    }

    img {
      margin-top: 0.55vw;
    }

    b {
      color: #4ec6a0;
    }
  }

  .el-menu {
    border: none !important;
    margin-left: 5vw;
    background: none !important;
    display: flex;
    align-items: center;

    .el-menu-item {
      @include config.useTheme {
        color: getVar("color");
      }
      font-size: 0.9vw;
      font-weight: 600;
      font-family: '黑体', serif;
      height: 2vw !important;
      display: flex;
      align-items: center;
      justify-content: center;
      border-radius: 8px;
      margin-right: 10px;
    }

    .el-menu-item:hover {
      color: black !important;
    }

    .el-submenu {
      height: 2vw;
      margin-right: 10px;

      .el-submenu__title {
        height: 2vw !important;
        padding: 0 15px !important;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 8px;
        border: none !important;
        @include config.useTheme {
          color: getVar("color");
        }
        font-size: 0.9vw;
        font-weight: 600;
        font-family: '黑体', serif;

        i {
          font-size: 16px;
          font-weight: 900;
          @include config.useTheme {
            color: getVar("color");
          }
        }
      }
    }

    .el-submenu:hover {
      height: 2vw !important;
      background: white !important;
      border: none !important;
      border-radius: 8px;

      .el-submenu__title {
        color: black !important;
        padding: 0 15px !important;

        i {
          color: black !important;
          font-size: 16px;
          font-weight: 900;
        }
      }
    }

    .is-active,
    .is-opened {
      height: 2vw !important;
      background: white;
      border: none !important;
      border-radius: 8px;
      color: black !important;

      .el-submenu__title {
        color: black !important;
        border: none !important;
        padding: 0 15px !important;

        i {
          color: black !important;
        }
      }
    }

    .nav-item {
      display: inline-block;
      margin-right: 0.573vw;

      .el-menu-item {
        border-radius: 3px;
        height: 2vw;
        display: flex;
        justify-content: center;
        align-items: center;
        padding: 0 14px;
        font-size: 0.9vw;

        .iconfont {
          font-size: 1.146vw;
        }
      }
    }
  }

  .right-menu {
    height: 2.204vw;
    margin-left: auto;
    @include config.useTheme {
      border: getVar("color") !important;
    }
    border-radius: 5px;
    @include config.useTheme {
      color: getVar("color") !important;
    }
    padding: 0 1.094vw;
    display: flex;
    align-items: center;
    margin-right: 1.042vw;

    .text {
      font-size: 0.729vw;
      height: 1.771vw;
      line-height: 1.771vw;
      padding-right: 1.094vw;
      @include config.useTheme {
        color: getVar("color") !important;
      }
    }

    a {
      display: flex;
      align-items: center;
    }

    i {
      font-size: 1.146vw;
      line-height: 1.146vw;
      cursor: pointer;
    }
  }
}

.elSubmenuCodeBox {
  border-radius: 10px !important;
  overflow: hidden;

  .el-menu {
    padding: 10px !important;
  }

  .el-menu-item {
    color: black !important;
    font-family: '微软雅黑', serif;
    font-size: 0.87vw;
    font-weight: 600;
    margin-bottom: 10px !important;
  }

  .is-active {
    @include config.useTheme {
      background-image: getVar("sideActiveImage") !important;
    }
    @include config.useTheme {
      box-shadow: getVar("boxShadow");
    }
    border-radius: 5px !important;
    color: white !important;
    font-family: '黑体', serif;
    font-size: 0.87vw;
    font-weight: 900;
    letter-spacing: 1px;
  }
}

.hamburger-container {
  line-height: 40px;
  height: 100%;
  float: left;
  cursor: pointer;
  transition: background 0.3s;
  -webkit-tap-highlight-color: transparent;

  &:hover {
    background: rgba(0, 0, 0, 0.025);
  }
}

.custom-el-tab {
  .el-tabs {
    .el-tabs__header > .el-tabs__nav-wrap {
      .el-tabs__item {
        color: white;
        background: vars.$theme-custom-tab-bg;
      }

      .el-tabs__item.is-active {
        color: white;
        background: vars.$theme-custom-tab-active-bgNew;
      }
    }
  }
}

// 标题中的 时间输入框
// 年
.custom-el-tab {
  .el-date-editor--year {
    width: 120px;

    .el-input__inner {
      height: 34px;
      line-height: 34px;
    }

    .el-input__icon {
      line-height: 34px;
    }
  }
}

// tabs标签页样式重构
.custom-el-tab,
.custom-el-tab-title,
.custom-leftRight-el-tab {
  position: relative;
  vertical-align: middle;

  .el-input__icon {
    line-height: 28px !important;
  }

  .el-select {
    width: 140px;
    margin-right: 5px;
    height: 28px;
    line-height: 28px;

    .el-input {
      height: 28px;
      line-height: 28px;

      .el-input__suffix {
        .el-input__suffix-inner {
          .el-input__icon {
            line-height: 28px;
          }
        }
      }

      .el-input__inner {
        height: 28px;
        line-height: 28px;
      }
    }
  }

  .el-tabs {
    .el-tabs__header {
      padding-left: 2px;
      margin: 0;
      display: inline-block;

      .el-tabs__nav-wrap {
        &:after {
          display: none;
        }

        .el-tabs__nav {
          width: 100%;

          .el-tabs__active-bar {
            display: none;
          }
        }

        .el-tabs__item {
          width: auto;
          padding: 0 0.781vw;
          background-position: center center;
          background-size: 100% 100%;
          background-repeat: no-repeat;
          text-align: center;
          height: 28px;
          line-height: 26px;
          box-sizing: border-box;
          border: 1px solid rgb(17, 167, 249);
        }

        .el-tabs__item.is-active {
          font-weight: bold;
        }

        .el-tabs__item:last-child {
          margin-right: 0;
        }
      }
    }
  }
}

.custom-tree-node {
  width: 100%;
  font-size: 14px;

  .el-row--flex {
    width: 100%;
    justify-content: flex-end !important;
  }
}

.water-quality {
  cursor: pointer;
}

.el-table__fixed,
.el-table__fixed-right {
  height: auto !important;
  bottom: 10px !important;
}

.el-table__body-wrapper.is-scrolling-none ~ .el-table__fixed-right,
.el-table__body-wrapper.is-scrolling-none ~ .el-table__fixed {
  height: 100% !important;
}

.el-table__fixed-body-wrapper .el-table__body {
  padding-bottom: 10px !important;
}
